﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace Fares
{
    public partial class CategoriiArticoleFrm : FrmRezumat
    {
        public CategoriiArticoleFrm(ModuleClass mInfo):base(mInfo)
        {
            InitializeComponent();
            workConnString = mInfo.workConnectionString;
            ActiveControl = tipCategoriiArticoleDGV;

        }

        private void CategoriiArticoleFrm_Load(object sender, EventArgs e)
        {

            this.tipCategoriiArticoleTableAdapter.Connection = DeschideConexiune(workConnString);
            this.tipCategoriiArticoleTableAdapter.Fill(this.esrpDataSetArticol.TipCategoriiArticole);
            InchideConexiune(this.tipCategoriiArticoleTableAdapter.Connection);
            this.listBndSourceMain.Add(tipCategoriiArticoleBindingSource);
            this.listTableAdaptor.Add(tipCategoriiArticoleTableAdapter.Adapter);

            HandleSalvare += Salvare;

        }
    }
}
